home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************/
- /* */
- /* Demo of how to determine what version of Telix, for DOS or */
- /* Windows and its version number, to keep scripts compatible. */
- /* */
- /* Copyright 1995 deltaComm Development, Inc. */
- /* */
- /****************************************************************/
-
- main()
- {
- str ss[128];
-
- printsc("Telix for "); // Test Windows or DOS
- if (telixforwindows())
- prints("Windows");
- else
- prints("DOS");
-
- if (!scriptversion()) // If TFW's SALT II, then
- printsc("Not "); // say so, or say not if not.
- prints("SALT II compatible");
-
- printsc("Telix version: ");
- prints(Telixversion(ss)); // Display version of Telix
-
- if (getenv("TELIX", ss)) // if environment variable exists
- { // then show its value here.
- printsc("TELIX variable value: ");
- prints(ss);
- }
-
- printsc("Current Phonebook: ");
- prints(getfon(ss));
- }
-